<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        html,
        body {
            height: 100%;
        }

        .test {
            height:100%;
            /* height: calc(90% + 100px); */
            width: 800px;
            background-color: aqua;
        }

        .test2 {
            height: 600px;
            width: 500px;
            background-color: red;
        }

        span {
            display: block;
            font-size: 50px;
            font-family: "microsoft yahei"
        }
    </style>
</head>

<body>
    <div class="test">
        <div class="test2">
            <span style="font-weight: 100">1字体测试</span>
            <span style="font-weight: 200">2字体测试</span>
            <span style="font-weight: 300">3字体测试</span>
            <span style="font-weight: 400">4字体测试</span>
            <span style="font-weight: 500">5字体测试</span>
            <span style="font-weight: 600">6字体测试</span>
            <span style="font-weight: 700">7字体测试</span>
            <span style="font-weight: 800">8字体测试</span>
            <span style="font-weight: light">light字体测试</span>
            <span style="font-weight: normal">normal字体测试</span>
            <span style="font-weight: bold">bold字体测试</span>
            <span style="font-weight: bolder">bolder字体测试</span>
        </div>
    </div>
</body>

</html>